#ifndef RECBOX_H
#define RECBOX_H

#include <QWidget>
#include <QJsonArray>

namespace Ui {
class RecBox;
}

class RecBox : public QWidget
{
    Q_OBJECT

public:
    explicit RecBox(QWidget *parent = nullptr);
    ~RecBox();

    void initRecBoxUi(QJsonArray objArray,int rows);

    void createRecBoxItem();
    void createRecBoxItems();

    void clearRecImageUp();
    void clearRecImageDown();

private slots:
    void on_BtUp_clicked();

    void on_btDown_clicked();

private:
    Ui::RecBox *ui;

    int row = 1;
    int col = 5;

    int currentIndex = 0;
    int count;
    int counts;

    QJsonArray imageList;
};

#endif // RECBOX_H
